package com.yex.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.MessageEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 短信
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-12-26 16:19:18
 */
public interface MessageDao extends BaseMapper<MessageEntity> {

    List<MessageEntity> selectMessage();

    MessageEntity selectMessageSend(@Param("mobile")String mobile,@Param("code")String code,@Param("type")String type);

    Integer updateMessageSend(@Param("id") Integer id);

    Integer updateMessageVerify(@Param("id") Integer id);

    MessageEntity selectMessageSendTime(@Param("mobile")String mobile,@Param("type")String type);


}
